/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.controller.bean;

//import com.common.json.ParseJSONObject;
import com.entities.FAQ;
import com.model.FAQModel;
import java.util.ArrayList;
import java.util.List;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

/**
 *
 * @author VANANH
 */
@Named(value = "fAQBean")
@RequestScoped
public class FAQBean
{
    List<FAQ> lst;
    FAQModel faqModel;
    public FAQBean()
    {
        lst = new ArrayList<>();
        faqModel = new FAQModel();
    }

    public List<FAQ> getLst()
    {
        lst = faqModel.fillFAQ();
        return lst;
    }

    public void setLst(List<FAQ> lst)
    {
        this.lst = lst;
    }
    
    private int faqId;
    private String question;
    private String answer;

    public int getFaqId()
    {
        return faqId;
    }

    public void setFaqId(int faqId)
    {
        this.faqId = faqId;
    }

    public String getQuestion()
    {
        return question;
    }

    public void setQuestion(String question)
    {
        this.question = question;
    }

    public String getAnswer()
    {
        return answer;
    }

    public void setAnswer(String answer)
    {
        this.answer = answer;
    }
    
    
    
}
